package com.example.admin.mapper;


import com.example.admin.entity.ElderChildrenInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ElderChildrenMapper {

    List<ElderChildrenInfo> getElderChildrenPage();

    int deleteElderChirdenById(@Param("id") Integer id);

    int addElderChirden(@Param("elderChildrenInfo") ElderChildrenInfo elderChildrenInfo);

    int editeElderChildren(@Param("elderChildrenInfo") ElderChildrenInfo elderChildrenInfo);

    List<ElderChildrenInfo> selectElderChilrdrenByName(@Param("elderId") Integer elderId);
}
